package com.ruoyi.system.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.system.service.IZzxxChapterExaminationService;

/**
 * 章节测试外键Controller
 * 
 * @author ruoyi
 * @date 2022-06-20
 */
@RestController
@RequestMapping("/zzxx/examination")
public class ZzxxChapterExaminationController extends BaseController
{
    @Autowired
    private IZzxxChapterExaminationService zzxxChapterExaminationService;

//    /**
//     * 查询章节测试外键列表
//     */
//    @PreAuthorize("@ss.hasPermi('zzxx:examination:list')")
//    @GetMapping("/list")
//    public TableDataInfo list(ZzxxChapterExamination zzxxChapterExamination)
//    {
//        startPage();
//        List<ZzxxChapterExamination> list = zzxxChapterExaminationService.selectZzxxChapterExaminationList(zzxxChapterExamination);
//        return getDataTable(list);
//    }
//
//    /**
//     * 导出章节测试外键列表
//     */
//    @PreAuthorize("@ss.hasPermi('zzxx:examination:export')")
//    @Log(title = "章节测试外键", businessType = BusinessType.EXPORT)
//    @PostMapping("/export")
//    public void export(HttpServletResponse response, ZzxxChapterExamination zzxxChapterExamination)
//    {
//        List<ZzxxChapterExamination> list = zzxxChapterExaminationService.selectZzxxChapterExaminationList(zzxxChapterExamination);
//        ExcelUtil<ZzxxChapterExamination> util = new ExcelUtil<ZzxxChapterExamination>(ZzxxChapterExamination.class);
//        util.exportExcel(response, list, "章节测试外键数据");
//    }
//
//    /**
//     * 获取章节测试外键详细信息
//     */
//    @PreAuthorize("@ss.hasPermi('zzxx:examination:query')")
//    @GetMapping(value = "/{chapterId}")
//    public AjaxResult getInfo(@PathVariable("chapterId") Long chapterId)
//    {
//        return AjaxResult.success(zzxxChapterExaminationService.selectZzxxChapterExaminationByChapterId(chapterId));
//    }
//
//    /**
//     * 新增章节测试外键
//     */
//    @PreAuthorize("@ss.hasPermi('zzxx:examination:add')")
//    @Log(title = "章节测试外键", businessType = BusinessType.INSERT)
//    @PostMapping
//    public AjaxResult add(@RequestBody ZzxxChapterExamination zzxxChapterExamination)
//    {
//        return toAjax(zzxxChapterExaminationService.insertZzxxChapterExamination(zzxxChapterExamination));
//    }
//
//    /**
//     * 修改章节测试外键
//     */
//    @PreAuthorize("@ss.hasPermi('zzxx:examination:edit')")
//    @Log(title = "章节测试外键", businessType = BusinessType.UPDATE)
//    @PutMapping
//    public AjaxResult edit(@RequestBody ZzxxChapterExamination zzxxChapterExamination)
//    {
//        return toAjax(zzxxChapterExaminationService.updateZzxxChapterExamination(zzxxChapterExamination));
//    }
//
//    /**
//     * 删除章节测试外键
//     */
//    @PreAuthorize("@ss.hasPermi('zzxx:examination:remove')")
//    @Log(title = "章节测试外键", businessType = BusinessType.DELETE)
//	@DeleteMapping("/{chapterIds}")
//    public AjaxResult remove(@PathVariable Long[] chapterIds)
//    {
//        return toAjax(zzxxChapterExaminationService.deleteZzxxChapterExaminationByChapterIds(chapterIds));
//    }
}
